package com.sm.wx.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author wangpengliang
 * Date 2020/5/27 10:46 上午
 * Copyright (C) www.lovesfang.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class WxOrderVO {
    /**
     * 订单描述
     */
    private String body;
    /**
     * 额外信息
     */
    private String attach;

    /**
     * 订单号
     */
    private String outTradeNo;

    /**
     * 金额（分）
     */
    private String totalFee;

    /**
     * 支付宝金额 （元）
     */
    private BigDecimal totalPrice;

    /**
     * 回调地址  域名不用写  例如 /payment/superMarketNotify
     */
    private String notifyUrl;

    //微信支付
    public WxOrderVO(String body, String attach, String outTradeNo, String totalFee, String notifyUrl) {
        this.body = body;
        this.attach = attach;
        this.outTradeNo = outTradeNo;
        this.totalFee = totalFee;
        this.notifyUrl = notifyUrl;
    }
    //支付宝支付
    public WxOrderVO(String body, String attach, String outTradeNo, BigDecimal totalPrice, String notifyUrl) {
        this.body = body;
        this.attach = attach;
        this.outTradeNo = outTradeNo;
        this.totalPrice = totalPrice;
        this.notifyUrl = notifyUrl;
    }
}

